<!DOCTYPE html>
<html lang="en">
<head>
	[#include "/customer/include/static.htm"]
	<link href="${path}/resources/css/member.css" rel="stylesheet" type="text/css" />
	<link href="${path}/resources/css/member/main.css" rel="stylesheet" type="text/css" />
	<link href="${path}/resources/css/member/pay.css" rel="stylesheet" type="text/css" />
        <link href="${path}/resources/css/member/invest.css" rel="stylesheet" type="text/css"/>

        <style>
	.user-glb-rightbox-h .user-glb-rightbox-h_ico3 {
		position: absolute;
		top: 40px;
		left: 322px;
		width: 93px;
		height: 34px;
		line-height: 34px;
		text-align: center;
		background: url(../images/bg.png) no-repeat left -2225px;
	}
	</style>
        <style>
            th{color: #ff814a;
                background-color: #fff9f4;
                border: 1px solid #fff0e6;

            }
            td{
                border: 1px solid #fff0e6;
            }


        </style>
	[#import "/customer/include/pagination.ftl" as p/]
</head>
<body>
<!--头部-->
[#include "/customer/include/header.ftl"]
[#include "/customer/include/member_menu.ftl"]
<div class="pay-bg">
    <div class="pay-wrap">
        <div class="pay-tit">充值中心</div>
        <div class="pay-tab" id="pay-tab">
            <hr id="payWay"/>
        </div>
        <div class="pay-tab-cont">
            <div class="user-glb-rightbox-h">
                <p>账户总额：
					<span class="p_ico fc15">
						￥${currency(account.total)}
					</span>
                    可用余额：
					<span class="p_ico fc15">
						￥${currency( account.balance)}
					</span>
                </p>
               [#--<a class="ico1" style="color: #fff;" href="${path}/member/account/go_recharge_offline" >线下充值</a>--]
                <a class="ico2" style="color: #fff;" href="${path}/member/account/go_recharge_online" >网银充值</a>
                <a class="ico3" style="left:720px" href="${path}/member/account/gocash">申请提现</a>
            </div>



            <div class="layui-tab layui-tab-brief" style="padding:0 50px">
                <div class="invest-tab" id="invest-tab">
                    <a>
                      <a href="${path}/member/account/rechargecash?type=recharge"">  <li  [#if type=='recharge']class="active"[/#if] style="width: 455px;">充值记录</li></a>
                        <a href="${path}/member/account/rechargecash?type=withdrawals" ><li  [#if type=='withdrawals']class="active"[/#if]  style="width: 455px;">提现记录</li></a>
                    </ul>
                </div>
                <div class="layui-tab-content">
                    <form action="${path}/member/account/rechargecash&type=${type}" method="post" id="searchForm">
                        <table class="layui-table">
                        [#if type=='recharge' ]

                            <colgroup>
                                <col width="100">
                                <col width="100">
                                <col width="100">
                                <col width="100">
                                <col width="100">
                                <col width="100">
                            </colgroup>
                            <thead>
                            <tr>
                                <th>充值方式</th>
                                <th>充值金额</th>
                                <th>订单号</th>
                                <th>充值时间</th>
                                <th>充值状态</th>
                                <th>备注</th>

                            </tr>
                            </thead>
                            [#if rechargeRecords?? && rechargeRecords?size > 0]
                                [#list rechargeRecords as recharge]
                                    <tr>
                                        <td>

                                        ${p2p_get_dict("recharge_methods",recharge.type)}

                                        </td>
                                        <td>￥${recharge.money}</td>
                                        <td>${recharge.trade_no}</td>
                                        <td>
                                            [#if recharge.addtime?? && recharge.addtime!= '']
											   ${p2p_date_format(recharge.addtime ,"yyyy-MM-dd HH:mm:ss")}

										[/#if]
                                        </td>
                                        <td>
                                            [#if recharge.status==1]
                                                成功
                                            [#elseif recharge.status==0]
                                                审核中
                                            [#elseif recharge.status==-1]
                                                失败
                                            [/#if]
                                        </td>
                                        <td>${recharge.remark}</td>
                                    </tr>
                                [/#list]
                            [#else]
                                <tr>
                                    <td id="tbody" style="background: #fff" colspan="8"><div class="nodataimg"></div></td>
                                </tr>
                            [/#if]
                        [#elseif type == 'withdrawals']
                            <colgroup>
                                <col width="100">


                                <col width="100">
                                <col width="100">
                                <col width="100">
                            </colgroup>
                        <thead>
                            <tr>
                                <th>提现方式</th>
                                <th>提现金额</th>

                                <th>提现时间</th>
                                <th>状态</th>
                            </tr>
                        </thead>
                            [#if cashRecords?? && cashRecords?size > 0]
                                [#list cashRecords as cash]
                                    <tr>
                                        <td>网站提现</td>
                                        <td>￥${cash.total}</td>

                                        <td>
                                            [#if cash.addtime?? && cash.addtime!= '']
											   ${p2p_date_format(cash.addtime ,"yyyy-MM-dd HH:mm:ss")}

											[/#if]
                                        </td>
                                        <td>
                                            [#if cash.status==1]
                                                成功
                                            [#elseif cash.status==0]
                                                审核中
                                            [#elseif cash.status==-1]
                                                失败
                                            [#elseif cash.status==2]
                                                易宝处理中
                                            [#elseif cash.status==3]
                                                审核中

                                            [/#if]
                                        </td>
                                    </tr>
                                [/#list]
                            [#else]
                                <tr>
                                    <td id="tbody" style="background: #fff" colspan="8"><div class="nodataimg"></div></td>
                                </tr>
                            [/#if]
                        [/#if]
                        </table>
                    </form>

                [@p.pager pager = page  parameterMap={"type":"${type}"}  url = "${path}/member/account/rechargecash"/]

                </div>
            </div>

        </div>
    </div>
</div>

[#--<div id="user-glb-box">
	<div id="user-glb-main-info">
		<!--左栏-->
		[#include "/customer/include/member_left_menu.ftl"]
		<!--左栏 end-->
		<!--右栏-->
		<div id="user-glb-right">

		</div>
		<!--右栏 end-->
		<div class="clear"></div>
	</div>
</div>--]
[#include "/customer/include/footer.ftl"]
</body>
</html>